package com.zelix;

import java.io.*;
import java.util.HashSet;
import java.util.Hashtable;

public class au extends pt
{

    private boolean o;
    private byte p[];
    private int q;
    private pu r[];
    private static String z[];

    au(kt kt1, int i, String s, jb jb, qy qy, PrintWriter printwriter, qy qy1)
        throws IOException {
        super(kt1, i, s, jb, qy);
        int j;
        o = true;
        if (super.m >= 2) {
            q = jb.readUnsignedShort();
            r = new pu[q];
            for (j = 0; j < q; j++) {
                r[j] = new pu(this, jb, qy1, printwriter);
                if (!r[j].a())
                    o = false;
            }
            if (!o) {
                ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream(super.m);
                DataOutputStream dataoutputstream = new DataOutputStream(bytearrayoutputstream);
                a(dataoutputstream);
                p = bytearrayoutputstream.toByteArray();
                r = null;
                o = false;
                printwriter.println(i() + z[1] + z[2] + z[0]);
                p = new byte[super.m];
                jb.read(p);
            }
        }
    }

    au(kt kt1, zs zs, int i)
    {
        super(kt1, zs, i);
        o = true;
    }

    public int t()
    {
        return q;
    }

    int q()
        throws tb {
        int i;
        int j;
        i = 2;
        for (j = 0; j < q; j++) {
            i += r[j].r();
        }
        super.m = i;
        return i;
    }

    zs u()
    {
        return super.k;
    }

    void b(HashSet hashset) {
        int i;
        for (i = 0; i < q; i++) {
            r[i].b(hashset);
        }
    }

    public void a(Hashtable hashtable)
    {
        hashtable.put(super.k, this);
    }

    void a(pu apu[])
    {
        q = apu.length;
        r = apu;
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable, nh nh)
        throws IOException, tb
    {
label0:
        {
            super.a(dataoutputstream, hashtable, nh);
            if(o)
            {
                a(dataoutputstream);
            }else{
            dataoutputstream.write(p);}
        }
    }

    protected void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        int i;
        dataoutputstream.writeShort(q);
        for(i = 0;i<q;i++){
        r[i].a(dataoutputstream);  }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0: // '\0'
            key = 1;
            break;

        case 1: // '\001'
            key = 0x5a;
            break;

        case 2: // '\002'
            key = 125;
            break;

        case 3: // '\003'
            key = 110;
            break;

        default:
            key = 27;
            break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[3];
        as[0] = z("!r?G".toCharArray());
        as[1] = z("!`]".toCharArray());
        as[2] = z("H4\013\017wh>]=o`9\026#zqz\034\032os3\037\033od".toCharArray());
        z = as;

    }
}